package com.tjw.ec.upms.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tjw.ec.upms.api.dto.RoleVO;
import com.tjw.ec.upms.api.entity.RoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色表,基本权限的集合。无上级与下级之分;
 * 
 * @author T-junwen
 * @email t-junwen@foxmail.com
 * @date 2019-07-27 16:43:31
 */
@Mapper
public interface RoleDao extends BaseMapper<RoleEntity> {

    /**
     * @Title: 根据用户id查询用户角色
     * @Param: [userId]
     * @return: java.util.List<com.tjw.ec.upms.api.dto.RoleVO>
     * @Author: 田俊文
     * @Date: 2019/8/2 14:14
     * @Throws:
     */
    List<RoleVO> getRoleByUserId(@Param("userId") String userId);
}
